
package my.edu.security.shiroservice;


import my.edu.security.userEntity.UserDetail;
import my.edu.security.userEntity.UserToken;

import java.util.Set;

/**
 * shiro相关接口
 *
 * @author Mark sunlightcs@gmail.com
 */
public interface ShiroService {
    /**
     * 获取用户权限列表
     */
    Set<String> getUserPermissions(UserDetail user);

    UserToken getToken(Long userId);


    Set<String> getUserRoles(UserDetail user);
}
